{% extends '../layout.html' %}
{% block main %}
    <div class="layui-row">
        <div class="layui-col-md6 layui-col-md-offset3">
            <form class="layui-form layui-form-pane" action="" method="post">
                {% csrf_token %}
                {% for field in form %}
                    <div class="layui-form-item">
                        <label class="layui-form-label">{{ field.label }}</label>
                        <div class="layui-input-block">
                            {{ field }}
                        </div>
                    </div>
                {% endfor %}
                <div class="layui-form-item">
                    <button class="layui-btn" lay-submit="" lay-filter="formDemoPane">立即提交</button>
                </div>
            </form>
        </div>
    </div>
{% endblock %}